const express = require('express');
const router = express.Router();
const likeController = require('../controllers/likeController');
const auth = require('../middleware/auth'); // 认证中间件

// 点赞相关路由
router.get('/articles/:id/likes', likeController.getLikes);
router.post('/articles/:id/like', auth, likeController.toggleLike);

module.exports = router; 